package com.ruoyi.car.business.util;


import com.ruoyi.car.business.domain.Appointment;
import com.ruoyi.car.business.domain.Statement;

public class NewUtil {
    public Appointment getNewAppointment(Appointment appointment){
        Appointment newAppointment = new Appointment();
        //客户姓名
        newAppointment.setCustomerName(appointment.getCustomerName());
        //客户联系方式
        newAppointment.setCustomerPhone(appointment.getCustomerPhone());
        //预约时间
        newAppointment.setAppointmentTime(appointment.getAppointmentTime());
        //车牌号码
        newAppointment.setLicensePlate(appointment.getLicensePlate());
        //汽车类型
        newAppointment.setCarSeries(appointment.getCarSeries());
        //服务类型【维修0/保养1】
        newAppointment.setServiceType(appointment.getServiceType());
        // 备注信息
        newAppointment.setInfo(appointment.getInfo());
        return newAppointment;
    }

    public Statement getNewStatement(Statement statement){
        Statement newStatement = new Statement();
        //客户姓名
        newStatement.setCustomerName(statement.getCustomerName());
        // 联系方式
        newStatement.setCustomerPhone(statement.getCustomerPhone());
        // 到店时间
        newStatement.setActualArrivalTime(statement.getActualArrivalTime());
        // 车牌号码
        newStatement.setLicensePlate(statement.getLicensePlate());
        // 汽车类型
        newStatement.setCarSeries(statement.getCarSeries());
        // 服务类型
        newStatement.setServiceType(statement.getServiceType());
        // 备注信息
        newStatement.setInfo(statement.getInfo());
        return newStatement;
    }
}
